<template>
  <div class="hover-effect" v-if="src">
    <img :src="src" alt="Right Bar" class="img" />
  </div>
</template>

<script>
import { } from "vue"
export default {
  name: 'MIcon',
  props: {
    src: String,
  },
  components: {},
  setup() {
    return {
    };
  },
};
</script>

<style scoped>
.hover-effect {
  display: inline-block;
  position: relative;
  cursor: pointer;
  /* 鼠标变为小手 */
}

.hover-effect .img {
  display: block;
  transition: all 0.3s ease;
  width: 100%;
  /* 根据需要调整 */
  height: auto;
  /* 根据需要调整 */
}

.hover-effect:hover .img {
  mix-blend-mode: multiply;
  background-color: rgb(230, 230, 230);
}
</style>
